import Ax from './api';

export default {
  manufacturerAdd: (param = {}) => Ax.put(`/manufacturer/add`, param),
  manufacturerEdit: (param = {}) => Ax.put(`/manufacturer/edit`, param),
  manufacturerDelete: (query = {}) => Ax.delete(`/manufacturer/delete?_id=${query._id}`),
  manufacturerList: (param = {}) => Ax.post(`/manufacturer/list`, param),
  manufacturerAll: (query = {}) => Ax.get(`/manufacturer/all`),
  manufacturerByDeviceType: (query = {}) => Ax.get(`/manufacturer/byDeviceType?deviceType=${query.deviceType}`),
  manufacturerDetail: (query = {}) => Ax.get(`/manufacturer/detail?_id=${query._id}`),
};
